import request from '@/utils/request'

// 查询学生成绩列表
export function listGrades(query) {
  return request({
    url: '/app/grades/list',
    method: 'get',
    params: query
  })
}

// 查询学生成绩详细
export function getGrades(id) {
  return request({
    url: '/app/grades/query/' + id,
    method: 'get'
  })
}

// 新增学生成绩
export function addGrades(data) {
  return request({
    url: '/app/grades/add',
    method: 'post',
    data: data
  })
}

// 修改学生成绩
export function updateGrades(data) {
  return request({
    url: '/app/grades/edit',
    method: 'post',
    data: data
  })
}

// 删除学生成绩
export function delGrades(id) {
  return request({
    url: '/app/grades/remove/' + id,
    method: 'delete'
  })
}

// 导出学生成绩
export function exportGrades(query) {
  return request({
    url: '/app/grades/export',
    method: 'get',
    params: query
  })
}
